"""shareAPI2020 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from django.views.generic import TemplateView
from rest_framework.documentation import include_docs_urls

# 修改后台标题和关键信息
admin.site.site_header = "小程序管理中心"
admin.site.site_title = "小程序天阙中控"
admin.site.index_title = "欢迎来到孔雀逍遥殿"
# 修改后台标题和关键信息--end
#更新测试
urlpatterns = [
    path('admin/', admin.site.urls),
    path('shareAPI/', include('shareAPI.urls')),  # 清灰工具模块
    path('wangming/', include('wangming.urls')),  # 昵称系统模块
    # path('schoolBook/', include('schoolBook.urls')),  # 图书馆模块
    path('BookContent/', include('BookContent.urls')),  # 小说文章发布系统
    path('MyComment/', include('MyComment.urls')),  # 小说文章发布系统
    path('teacher/', include('TeacherApp.urls')),  # 测试模块


    path('ckeditor/', include('ckeditor_uploader.urls')),  # ckeditor富文本模式，支持上传图片

    # drf的自动化api文档
    path('docs/', include_docs_urls(title='站点页面标题',authentication_classes=[],)),


    url(r'^root\.txt$', TemplateView.as_view(template_name='root.txt', content_type='text/plain')),

]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
